package com.own.component.log.login.property;

import com.own.constant.ConstantValue;
import lombok.Data;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;
import java.util.Map;

/**
 * LogLoginProperty
 *
 * @author chenxueli
 * @date 2023-08-07 22:06:25
 */
@Data
@SpringBootConfiguration
@ConfigurationProperties(prefix = LogLoginProperty.PREFIX)
public class LogLoginProperty {

    public static final String PREFIX = ConstantValue.CONFIG_VALUE_CONTENT + "log.login";

    /**
     * 是否采集信息
     */
    private boolean collect = false;

    /**
     * 登录限制规则信息
     */
    private Map<String, List<LoginLimitRule>> limitRules;

}
